import { request } from '@/utils/request';

/**
 * Banner列表
 */
export function indexWindow(data?: Recordable) {
  return request({
    url: `/api/index/window`,
    method: 'get',
    params: data,
  });
}

export function indexCarousel(data?: Recordable) {
  return request({
    url: `/api/index/carousel`,
    method: 'get',
    params: data,
  });
}
export function indexCate(data?: Recordable) {
  return request({
    url: `/api/index/cate`,
    method: 'get',
    params: data,
  });
}

export function indexService(data?: Recordable) {
  return request({
    url: `/api/index/service`,
    method: 'get',
    params: data,
  });
}

export function indexContent(data?: Recordable) {
  return request({
    url: `/api/index/content`,
    method: 'get',
    params: data,
  });
}
export function indexKeyword(data?: Recordable) {
  return request({
    url: `/api/index/keyword`,
    method: 'get',
    params: data,
  });
}
export function serviceList(data?: Recordable) {
  return request({
    url: `/api/service/list`,
    method: 'get',
    params: data,
  });
}
export function contentCateList(data?: Recordable) {
  return request({
    url: `/api/content/cateList`,
    method: 'get',
    params: data,
  });
}
export function contentList(data?: Recordable) {
  return request({
    url: `/api/content/list`,
    method: 'get',
    params: data,
  });
}
export function serviceDetail(data?: Recordable) {
  return request({
    url: `/api/service/detail`,
    method: 'get',
    params: data,
  });
}
export function contentDetail(data?: Recordable) {
  return request({
    url: `/api/content/detail`,
    method: 'get',
    params: data,
  });
}
export function indexChangeLang(data?: Recordable) {
  return request({
    url: `/api/index/changeLang`,
    method: 'post',
    data,
  });
}
export function indexExchangeRate(data?: Recordable) {
  return request({
    url: `/api/index/exchangeRate`,
    method: 'get',
    params: data,
  });
}
export function userCheck(data?: Recordable) {
  return request({
    url: `/api/user/check`,
    method: 'get',
    params: data,
  });
}
export default {
  indexWindow,
  indexCarousel,
  indexCate,
  indexService,
  indexContent,
  indexKeyword,
  serviceList,
  contentCateList,
  contentList,
  serviceDetail,
  contentDetail,
  indexChangeLang,
  indexExchangeRate,
  userCheck,
};
